{{!
  Copyright IBM Corp. 2016, 2025
  SPDX-License-Identifier: BUSL-1.1
}}

<Page::Header @title="Multi-Factor Authentication">
  <:breadcrumbs>
    <Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
  </:breadcrumbs>
</Page::Header>

<Mfa::Nav />

<Toolbar>
  <ToolbarActions>
    <ToolbarLink @route="vault.cluster.access.mfa.enforcements.create" @type="add" data-test-enforcement-create>
      New enforcement
    </ToolbarLink>
  </ToolbarActions>
</Toolbar>

{{#if (gt this.model.length 0)}}
  {{#each this.model as |item|}}
    <Mfa::LoginEnforcementListItem @model={{item}} />
  {{/each}}
{{else}}
  <EmptyState @title="No enforcements found." @message="Add a new one to get started." />
{{/if}}